<?php
use yii\helpers\Html;
use yii\helpers\Url;
/* @var $model app\models\Pic */
/* @var $this yii\web\View */
?>
<div class="col-sm-3">
    <div class="ibox">
        <div class="ibox-title">
            <small><?=$model->picid?></small>
            <div class="ibox-tools">
                <a href="<?=Url::to(['pic/update','id'=>$model->picid])?>">
                    <i class="fa fa-wrench"></i>
                </a>
                <?= Html::a('<i class="fa fa-times"></i>', ['pic/delete', 'id' => $model->picid], [
                    'data' => [
                        'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
                        'method' => 'post',
                    ],
                ]) ?>
            </div>
        </div>
        <div class="ibox-content">
            <a class="fancybox">
                <?=Html::img(app\models\UploadForm::SHOW_DIR.$model->url,['width'=>'120px','height'=>'60px'])?>
            </a>
        </div>
    </div>
</div>
